package com.yc.baihe.beans;

import java.io.Serializable;

public class UserPrivate implements Serializable{
	private static final long serialVersionUID = 1L;
	private int buid;//用户帐号
	private String qq;//qq号码
	private String weixin;//微信号
	private String email;//邮箱号码
	private String phone;//手机号码
	private String other;//其他联系方式
	
	private String temp1;//备用
	private String temp2;//备用
	
	@Override
	public String toString() {
		return "UserPrivate [buid=" + buid + ", qq=" + qq + ", weixin=" + weixin
				+ ", email=" + email + ", phone=" + phone + ", other=" + other
				+ ", temp1=" + temp1 + ", temp2=" + temp2 + "]";
	}

	public int getBuid() {
		return buid;
	}

	public void setBuid(int buid) {
		this.buid = buid;
	}

	public String getQq() {
		return qq;
	}

	public void setQq(String qq) {
		this.qq = qq;
	}

	public String getWeixin() {
		return weixin;
	}

	public void setWeixin(String weixin) {
		this.weixin = weixin;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getOther() {
		return other;
	}

	public void setOther(String other) {
		this.other = other;
	}

	public String getTemp1() {
		return temp1;
	}

	public void setTemp1(String temp1) {
		this.temp1 = temp1;
	}

	public String getTemp2() {
		return temp2;
	}

	public void setTemp2(String temp2) {
		this.temp2 = temp2;
	}

	public UserPrivate() {
		super();
		// TODO Auto-generated constructor stub
	}

	public UserPrivate(int buid, String qq, String weixin, String email,
			String phone, String other, String temp1, String temp2) {
		super();
		this.buid = buid;
		this.qq = qq;
		this.weixin = weixin;
		this.email = email;
		this.phone = phone;
		this.other = other;
		this.temp1 = temp1;
		this.temp2 = temp2;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((email == null) ? 0 : email.hashCode());
		result = prime * result + ((other == null) ? 0 : other.hashCode());
		result = prime * result + ((phone == null) ? 0 : phone.hashCode());
		result = prime * result + ((qq == null) ? 0 : qq.hashCode());
		result = prime * result + ((temp1 == null) ? 0 : temp1.hashCode());
		result = prime * result + ((temp2 == null) ? 0 : temp2.hashCode());
		result = prime * result + buid;
		result = prime * result + ((weixin == null) ? 0 : weixin.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		UserPrivate other = (UserPrivate) obj;
		if (email == null) {
			if (other.email != null)
				return false;
		} else if (!email.equals(other.email))
			return false;
		if (this.other == null) {
			if (other.other != null)
				return false;
		} else if (!this.other.equals(other.other))
			return false;
		if (phone == null) {
			if (other.phone != null)
				return false;
		} else if (!phone.equals(other.phone))
			return false;
		if (qq == null) {
			if (other.qq != null)
				return false;
		} else if (!qq.equals(other.qq))
			return false;
		if (temp1 == null) {
			if (other.temp1 != null)
				return false;
		} else if (!temp1.equals(other.temp1))
			return false;
		if (temp2 == null) {
			if (other.temp2 != null)
				return false;
		} else if (!temp2.equals(other.temp2))
			return false;
		if (buid != other.buid)
			return false;
		if (weixin == null) {
			if (other.weixin != null)
				return false;
		} else if (!weixin.equals(other.weixin))
			return false;
		return true;
	}
	
}
